package com.lyz.dataStructure.algorithm.快手2020;/**
 * @Author:759057893@qq.com Lyz
 * @Date: ${Date} 18:18
 * @Description:
 **/

import java.util.Scanner;

/**
 *@Author:759057893@qq.com Lyz
 *@Date: 2019/8/25 18:18
 *@Description:
 **/
public class 好序列个数 {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int k = sc.nextInt();
        /*int ans = 0, x;
        for(int i = 0; i < n-1; i++){
            for(int j = 0; j < 3; j++){
                x = sc.nextInt();
                ans += x;
            }
        }*/
        System.out.println((int)Math.pow(n,k));
    }
}
